import { Init, Provide } from '@midwayjs/decorator';
import { BaseService } from '@cool-midway/core';
import { InjectEntityModel } from '@midwayjs/typeorm';
import { Repository } from 'typeorm';
import { GameLevelPlayerEntity } from '../entity/player'; 

/**
 * game模块-解锁记录
 */
@Provide()
export class GameLevelPlayerService extends BaseService {
  @InjectEntityModel(GameLevelPlayerEntity)
  GameLevelPlayerEntity: Repository<GameLevelPlayerEntity>;

  @Init()
  async init() {
    await super.init();
    this.setEntity(this.GameLevelPlayerEntity);
  }
}
